<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simple Task Share - Home</title>
</head>
<body>

<h3>${f:h(taskListCount)} <fmt:message key="task.list.size.suffix" /></h3>
<input type="button" value="<fmt:message key="task.new.button"/>" onclick="location.href='${f:url('inserttask')}'" /><br />
<c:if test="${not empty taskList}">
<table border="0" style="width:100%;">
<c:forEach var="task" items="${taskList}">
<c:set var="editUrl" value="edittask/${f:h(task.key)}/${task.version}"/>
<tr>
	<td><a href="${f:url(editUrl)}">${f:h(task.title)}</a></td>
	<td width="100px" style="text-align:center;"><fmt:message key="task.status.${f:h(task.status)}" /></td>
</tr>
</c:forEach>
</table>
</c:if>
</body>
</html>
